<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 区域表 添加
@author WeiXiaoJin
@since 2019-07-06 13:15:25
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">父ID</label>
	<div class="col-md-9">
		<input class="form-control" id="parentId" type="text" name="parentId" placeholder="父ID">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">区域名称</label>
	<div class="col-md-9">
		<input class="form-control" id="districtName" type="text" name="districtName" placeholder="区域名称">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">简称</label>
	<div class="col-md-9">
		<input class="form-control" id="shortName" type="text" name="shortName" placeholder="简称">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">经度</label>
	<div class="col-md-9">
		<input class="form-control" id="longitude" type="text" name="longitude" placeholder="经度">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">维度</label>
	<div class="col-md-9">
		<input class="form-control" id="latitude" type="text" name="latitude" placeholder="维度">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">等级</label>
	<div class="col-md-9">
		<input class="form-control" id="level" type="text" name="level" placeholder="等级">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">排序</label>
	<div class="col-md-9">
		<input class="form-control" id="sort" type="text" name="sort" placeholder="排序">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">删除标志: 0未删除，1已删除</label>
	<div class="col-md-9">
		<input class="form-control" id="isDeleted" type="text" name="isDeleted" placeholder="删除标志: 0未删除，1已删除">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">创建时间</label>
	<div class="col-md-9">
		<input class="form-control" id="createTime" type="text" name="createTime" placeholder="创建时间">
	</div>
</div>
							
								</form>
							</div>

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		// 保存操作
		/*
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"base/boot/infoAddress/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
		*/

		function submitHandler() {
			$.operate.save(ctx+"boot/platform/address/save" , $('#addForm').serialize());
	    }
	</script>

</body>
</html>

